angular.module('ionicApp', ['ionic'])

.controller('MainCtrl', function($scope) {

  $scope.devList = [
    { text: "多选题1", checked: true },
    { text: "多选题2", checked: false },
    { text: "多选题3", checked: false }
  ];

  $scope.pushNotificationChange = function(itchecked) {
    console.log('当前选项的值', itchecked);
  };
  
  $scope.emailNotification = 'Subscribed';


  $scope.serverSideList = [
    { text: "选项1", value: "1" },
    { text: "选项2", value: "2" },
    { text: "选项3", value: "3" },
    { text: "选项4", value: "4" }
  ];
  
  $scope.data = {
    clientSide: ''
  };
  
  $scope.serverSideChange = function(item) {
    console.log("你的选择是:", item.text, "value:", item.value);
  };
  
});